package com.hw.protocol.tool.decode;

import com.hw.protocol.tool.model.Result;
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;

/**
 * @author : lihy
 * @date : 2024/3/12 10:29
 * description:
 */

public interface IDecode {

    Result decode(byte[] bytes);

    default ByteBuf wrapBytes(byte[] bytes){
        return Unpooled.wrappedBuffer(bytes);
    }
}
